﻿using MaxStoreErp.Core.BaseClasses;
using MaxStoreErp.Core.Commands;

namespace MaxStoreShop.CoreModule.Settings
{
    class SettingsViewModel : ViewModelBase
    {
        public RelayCommand BrowseWorkFolderCommand { get; set; }
        public RelayCommand BrowseUpdateFolderCommand { get; set; }
        public RelayCommand CheckConnectionCommand { get; set; }
        string _workFolder;
        string _updateFolder;
        string _serverName;
        string _userId;
        string _password;
        string _dataBaseName;

        public string WorkFolder
        {
            get { return _workFolder; }
            set { OnPropertyChanged(ref _workFolder, value, "WorkFolder"); }
        }

        public string UpdateFolder
        {
            get { return _updateFolder; }
            set { OnPropertyChanged(ref _updateFolder, value, "UpdateFolder"); }
        }

        public string ServerName
        {
            get { return _serverName; }
            set { OnPropertyChanged(ref _serverName, value, "ServerName"); }
        }

        public string UserId
        {
            get { return _userId; }
            set { OnPropertyChanged(ref _userId, value, "UserId"); }
        }

        public string Password
        {
            get { return _password; }
            set { OnPropertyChanged(ref _password, value, "Password"); }
        }

        public string DataBaseName
        {
            get { return _dataBaseName; }
            set { OnPropertyChanged(ref _dataBaseName, value, "DataBaseName"); }
        }
    }
}
